package com.kaifamiao.www.demo.do0811;

public class Account {

    private long cardId;

    private String password;

    private double money;

    private String name;

    public Account(long cardId,String password,double money,String name){
        this.cardId = cardId;
        this.password = password;
        this.money = money;
        this.name = name;
    }
    public long getCardId(){
        return cardId;
    }

    public void setCardId(long cardId){
        this.cardId = cardId;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void show(){
        System.out.println("Account{"+ "cardId=" + cardId +",passward" +
                password+'\''+",money="+money+",name="+name + '\''+'}');
    }
    @Override
    public String toString(){
        return "Account{"+"cardId=" + cardId + ",money：" +money +
                ",name："+name+ '\''+'}';
    }
}
